Contents | Index | < Browse | Browse >
LETTERstrchrULETTER
Searches a string for a character.
Overview
#include <string.h>
char *strchr (const char *s, int c)
char *r;
const char *s;
int c;
Portability
ANSI
Description
Searches the string "s" for the first occurence of the character "c".
Returns
A pointer (within the string) to the character or NULL if it could not be found.